package com.tycmc.signelectroniccontracts.tools.show;

/**
 * Created by Spinel on 15/9/15.
 * Edited by Spinel on 15/11/4.
 */
public class LogShow {
    public LogShow() {
        throw new AssertionError();
    }

    private static boolean isDebugMode = true;

    public static void v(String msg) {
        if (isDebugMode) {
            android.util.Log.v("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.v("msg", "　");
            android.util.Log.v("msg", "-------   " + msg);
            android.util.Log.v("msg", "　");
            android.util.Log.v("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void v(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.v("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.v("msg", "　");
            android.util.Log.v("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.v("msg", "　");
            android.util.Log.v("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void d(String msg) {
        if (isDebugMode) {
            android.util.Log.d("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.d("msg", "　");
            android.util.Log.d("msg", "-------   " + msg);
            android.util.Log.d("msg", "　");
            android.util.Log.d("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void d(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.d("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.d("msg", "　");
            android.util.Log.d("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.d("msg", "　");
            android.util.Log.d("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void i(String msg) {
        if (isDebugMode) {
            android.util.Log.i("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.i("msg", "　");
            android.util.Log.i("msg", "-------   " + msg);
            android.util.Log.i("msg", "　");
            android.util.Log.i("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void i(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.i("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.i("msg", "　");
            android.util.Log.i("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.i("msg", "　");
            android.util.Log.i("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void w(String msg) {
        if (isDebugMode) {
            android.util.Log.w("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.w("msg", "　");
            android.util.Log.w("msg", "-------   " + msg);
            android.util.Log.w("msg", "　");
            android.util.Log.w("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void w(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.w("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.w("msg", "　");
            android.util.Log.w("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.w("msg", "　");
            android.util.Log.w("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void e(String msg) {
        if (isDebugMode) {
            android.util.Log.e("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.e("msg", "　");
            android.util.Log.e("msg", "-------   " + msg);
            android.util.Log.e("msg", "　");
            android.util.Log.e("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void e(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.e("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.e("msg", "　");
            android.util.Log.e("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.e("msg", "　");
            android.util.Log.e("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void wtf(String msg) {
        if (isDebugMode) {
            android.util.Log.wtf("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.wtf("msg", "　");
            android.util.Log.wtf("msg", "-------   " + msg);
            android.util.Log.wtf("msg", "　");
            android.util.Log.wtf("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void wtf(String tag, String msg) {
        if (isDebugMode) {
            android.util.Log.wtf("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            android.util.Log.wtf("msg", "　");
            android.util.Log.wtf("msg", "-------   " + tag + " -----> " + msg);
            android.util.Log.wtf("msg", "　");
            android.util.Log.wtf("msg", "--------------------------------------------------------------------------------------------------------------------------------------------------------------------");
        }
    }

    public static void init(boolean debug) {
        isDebugMode = debug;
    }
}
